package cn.itcast.thread;

public class MyThread extends Thread{

    private String name;

    public MyThread(){

    }

    public MyThread(String name){
        this.name=name;
    }

    @Override
    public void run() {
        System.out.println(Thread.currentThread().getName()+name+"正在执行....");
    }
}
